<&include file="include/header.tpl" title=$title username=$user_firstname web_site=$web_site page_css="find-goals.css"&>
<!--page_text-->
	<div id="main">
    <!--side-->  
<!--    
        <div id="left-side">
        	<div class="box1">
            	<p>Change city</p>
                <div class="sel" style="z-index:10" id="search_area_block"><input type="text" id="search_area_name" value="<&if $arrArgs.area&><&$objConfigModel->getArea($arrArgs.area)&><&else&>All<&/if&>" class="text-box245" readonly="readonly" style="cursor:default"/><a href="#" class="next-sel" id="search_area_list_ctrl"></a><ul class="text-box245 sel-lists-box" style="display:none" id="search_area_list"><&foreach item=area from=$area_list name=area_list&><li id="<&$area.id&>"><&$area.area_name&></li><&/foreach&></ul></div>
                <a href="#pop6" class="show_pop6"><span>(Not see your city?)</span></a>
                <p>Choose fitness goals</p>
                <div class="sel" style="z-index:5" id="gen_goal_block"><input type="text" id="gen_goal_name" value="<&$goal_name&>" class="text-box245" readonly="readonly" style="cursor:default"/><a href="#" class="next-sel" id="gen_goal_list_ctrl"></a><ul class="text-box245 sel-lists-box" style="display:none" id="gen_goal_list"><&foreach item=gen_goal from=$gen_goal_all_list name=gen_goal_all_list&><li id="<&$gen_goal.id&>"><&$gen_goal.goal_name&></li><&/foreach&></ul></div>
            </div>
            
            <div class="box2">
            	<div class="title">Browse goals</div>
                <strong>Gender</strong>
                <ul>
                <&foreach item=gender from=$gender_list name=gender_list&>
                	<li><a href="<&$gender.url&>" <&if $gender.selected&> class="now" <&/if&>><&$gender.gender_name&></a></li>                   
                <&/foreach&>
                </ul>
                <strong>Age group</strong>
                <ul>
                <&foreach item=age from=$age_list name=age_list&>
                	<li><a href="<&$age.url&>" <&if $age.selected&> class="now" <&/if&>><&$age.age_name&></a></li>                   
                <&/foreach&>

                </ul>
                <strong>Body type</strong>
                <ul>
                <&foreach item=body from=$body_list name=body_list&>
                	<li><a href="<&$body.url&>" <&if $body.selected&> class="now" <&/if&>><&$body.body_name&></a></li>                   
                <&/foreach&>
                </ul>
                <strong>Who are clients looking for</strong>
                <ul>
                <&foreach item=trainer from=$trainer_list name=trainer_list&>
                	<li><a href="<&$trainer.url&>" <&if $trainer.selected&> class="now" <&/if&>><&$trainer.trainer_name&></a></li>                   
                <&/foreach&>
                </ul>
         
                <strong>Hiring trainers?</strong>
                <ul>
                	<li><a href="#nogo">Not hiring</a></li>
                    <li><a href="#nogo">Currently hiring</a></li>
                    <li><a href="#nogo">Trainer hired</a></li>
                </ul>
                
            </div>
        </div>
-->
<!--side_over-->

<div id="right-body">
			<div class="box1 height140">
            	<h1><&$goal_name&></h1>
                <h2><&$goal_list_cnt&> users want to reach this goal</h2>
                <div class="add-goal">
                	<a href="#nogo" class="add" id="add_this_goal">Add this goal</a>
                    <a href="#pop2" class="show_pop2" style="display:none" id="add_this_goal_shadow"><&$goal_name&></a>
                    
                    <fb:like send="false" layout="button_count" width="50" show_faces="false"></fb:like>
                    <!--<div class="t-num"><a href="#nogo"><label>125</label></a></div>-->
                </div>
            </div>
 
			<div class="box1 box4 box5">
                <table cellpadding="0" cellspacing="0" border="0"  class="saylists">
                	<&foreach item=goal from=$goal_list name=goal_list&>
                    <tr class="ask-box"><td class="left-say">
                    	<a href="<&$web_site&>/user/detail/uid/<&$goal.uid&>">
                        <img src="<&$web_site&>/<&$goal.user.thumb_photo&>" />
                        <span><&$objConfigModel->genUsername($goal.user.firstname, $goal.user.lastname)&></span>
                        </a>
                    </td>
                    <td class="right-say">                    	
                    	<div class="saybox"><s></s>
                        	<p class="pad-r120"><&$goal.purpose&></p>
                            <i><&$goal.created_time|date_format:"%m/%d/%Y"&></i>
                            <span><a href="#pop4" class="show_pop4" id="<&$goal.id&>" goal_name="<&if $goal.gen_goal_id == 0&><&$goal.goal_name&><&else&><&$objConfigModel->getGenGoal($goal.gen_goal_id)&><&/if&>"><em>Give cheers, advices</em></a><&$goal.cheerleader_cnt&> cheerleaders<a href="<&$web_site&>/goal/detail/gid/<&$goal.id&>" class="golink">See Detail</a></span>
                        </div>
                    </td></tr>
                    <!--reply--> 
                    <&foreach item=cheer from=$goal.cheer_list name=cheer_list&>                    
                    <tr class="reply-box"><td colspan="2">
                    	<table cellpadding="0" cellspacing="0" border="0" >
                        	<tr><td class="left-say">
                    			<a href="<&$web_site&>/user/detail/uid/<&$cheer.user.id&>">
                        		<img src="<&$web_site&>/<&$cheer.user.thumb_photo&>" />
                        		<span><&$objConfigModel->genUsername($cheer.user.firstname, $cheer.user.lastname)&></span>
                        		</a>
                    		</td>
                    		<td class="right-say">                    	
                    			<div class="saybox"><s></s>
                        		<p class="pad-r120"><&$cheer.cheer_content&></p>
                            	<i><&$cheer.created_time|date_format:"%m/%d/%Y"&></i>
                                <span><em class="like" cheer_id="<&$cheer.id&>">Like</em><&$cheer.like_cnt&> likes<&if $cheer.user.user_type==1&><label>I am a trainer</label><&/if&></span>
                        		</div>
                    		</td></tr>
                        </table>
                    </td></tr>
                    <&/foreach&>
                    
                   	<!--over--->
                   <&/foreach&>
                </table>
            </div> 
            <&if count($page_list) > 1&>
            <ul class="paging">
            	<li class="last-page"><a href="<&$pre_page&>"></a></li>

                <&foreach item=page from=$page_list name=page_list&>
                	<li <&if $page.is_selected&> class="now" <&/if&>><a href="<&$page.url&>" ><&$page.id&></a></li>                   
                <&/foreach&>
                <li class="next-page"><a href="<&$next_page&>"></a></li>
            </ul>
            <&/if&>
<!---->                        
        </div>
    </div>
<!--page_text_over-->
<&include file="include/not_see_your_city.tpl"&>
<&include file="include/cheer_pop.tpl"&>
<script>
var cur_url = "<&$cur_url&>";
</script>
<&include file="include/footer.tpl" page_js="search.js"&>